﻿<Window x:Class="Wpfконфигуратор.ВыборТипа"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ВыборТипа" ShowInTaskbar="False"
        Name="окно"
        MaxHeight="700"
        SizeToContent="WidthAndHeight" WindowStyle="ToolWindow" >
    <DockPanel >
        <Grid DockPanel.Dock="Top">
            <Grid.ColumnDefinitions>
                  <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
              
            </Grid.ColumnDefinitions>
            <TextBox Name="textBoxВыбор" Grid.Column="0" Text="" HorizontalAlignment="Stretch" Margin="15,0,0,0" 
                     TextChanged="textBoxВыбор_TextChanged" />
            <Button  Name="КнопкаВыбора" Grid.Column="2" Content="Выбрать" VerticalAlignment="Center" Margin="10,0" Padding="4" ToolTip="Выбрать сборку" 
                    IsDefault="True" Click="Button_Click"></Button>
        </Grid>


        <DataGrid AutoGenerateColumns="False" Name="dataGrid1" IsReadOnly="True" 
                   HorizontalGridLinesBrush="#FFF0F0F0" VerticalGridLinesBrush="#FFF0F0F0" RowHeaderWidth="20" 
                                      AlternatingRowBackground="AliceBlue" AlternationCount="2"  CanUserResizeRows="False" 
                                      CanUserAddRows="False"
                                    Margin="1"
                                        
                                      SelectionMode="Single" MouseDoubleClick=" Button_Click">
            <DataGrid.Columns>
                <DataGridTextColumn Header="Имя" Binding="{Binding Path= ОписаниеТипа.Имя}"  />
                <DataGridTextColumn Header="Пространство Имен" Binding="{Binding Path=ОписаниеТипа.Тип.Namespace}"  />
                <DataGridTextColumn Header="Атрибуты" Binding="{Binding Path=ОписаниеТипа.АтрибутДоступа}" />
                <DataGridTextColumn Header="Тип" Binding="{Binding Path=ОписаниеТипа.ТипСАтрибутомПереопределения}" />
                <!--<DataGridTextColumn Header="Токен"  Binding="{Binding Path=}"/>-->
            </DataGrid.Columns>
        </DataGrid>



    </DockPanel>
</Window>
